<?php
/**
 * Created by PhpStorm.
 * User: micoya
 * Date: 2018/11/6
 * Time: 11:12 AM
 */

namespace app\common\model;


use think\Model;

class User extends Model {

    protected $table = 'user';

    public static function GetByUsername($username) {
        return self::where('username', $username)->find();
    }

}

